
let mongoose = require('mongoose');
module.exports=function (done) {
	let Schema=mongoose.Schema;
	let ObjectId=Schema.Types.ObjectId;
	const User=new Schema({
		name: {type: String,unique: true},
		password: String,
		nickname: String,
		email: {type:String,unique:true},
		about:String
	});
	$.model.User=$.mongodb.model('User',User);
	done();
}